<!-- functions_add 页面内容 -->
<section class="functions_add" ng-controller="functions_addCtrl">
	<ol class="breadcrumb">
		<li ng-click="goBack();"><a>更多功能</a></li>
		<li><a>添加功能</a></li>
	</ol>
	<div class="row">
		<div class="col col-md-9 col-sm-8 col-xs-8">
			<div uib-carousel active="active" interval="myInterval" no-wrap="noWrapSlides">
				<div uib-slide ng-repeat="(key, slide) in images track by slide.id" index="key">
					<img ng-src="{{slide.image.url}}?imageView2/1/w/800/h/600/interlace/1" style="margin:auto;width: 100%;">
				</div>
			</div>
			<div class="row text-center" style="margin: 30px auto;" ng-show="addons_ids.indexOf(se_addon.id) == -1">
				<div class="col">
					<button class="btn btn-mt-ok" ng-click="addAddon();">添加</button>
				</div>
			</div>
			<div class="row text-center" style="margin: 30px auto;" ng-show="addons_ids.indexOf(se_addon.id) != -1">
				<div class="col">
					<button class="btn btn-mt-ok" ng-click="deleteAddon(se_addon);">取消应用</button>
				</div>
			</div>
		</div>
		<div class="col col-md-3 col-sm-4 col-xs-4">
			<div class="panel panel-default">
				<div class="panel-body text-center" style="padding-top: 0px;padding-bottom: 0px;">
					<div class="row">
						<div class="col" ng-repeat="(key, addon) in addons track by key" ng-click="selectAddon(key);" style="margin: 30px auto;">
							<img class='addon_img' ng-src="{{addon.pictures[0].image.url}}?imageView2/1/w/200/h/200/interlace/1">
							<h4 style="font-size: 0.9em;">{{addon.title}}</h4>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

</section>
